<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/daojiao/dj_dg_qulity.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/daojiao/dj_dg_qulity.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "dj_dg_qulity",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "质量详情",
                name: "daojiao/dj_dg_qulity",
                newTabEdit: false,
                url: "/dj_dg_qulity/",
                sortName: "Id"
            });
            const editFormFields = ref({"point_id":"","product_id":"","lot_id":"","inspect_type_id":"","inspect_id":"","judgement":"","control_date":"","user_id":"","qulity_state":"","Remarks":""});
            const editFormOptions = ref([[{"title":"控制点","field":"point_id"},
                               {"title":"产品","field":"product_id"}],
                              [{"title":"批次号/序列号","field":"lot_id"},
                               {"title":"检验类型","field":"inspect_type_id"}],
                              [{"title":"检验单","field":"inspect_id"},
                               {"title":"检验结果","field":"judgement"}],
                              [{"title":"控制日期","field":"control_date"},
                               {"title":"负责人","field":"user_id"}],
                              [{"title":"状态","field":"qulity_state"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"point_id",title:"控制点",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"product_id",title:"产品",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"lot_id",title:"批次号/序列号",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"inspect_type_id",title:"检验类型",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"inspect_id",title:"检验单",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"judgement",title:"检验结果",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"control_date",title:"控制日期",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"user_id",title:"负责人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"qulity_state",title:"状态",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"键",type:"int",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
